/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <gtest/gtest.h>
#include <test_header.h>

#include "image_enhance_param.h"

using namespace testing;
using namespace testing::ext;
namespace OHOS {
namespace Rosen {
class ImageEnhanceParamTest : public testing::Test {
public:
    static void SetUpTestCase();
    static void TearDownTestCase();
    void SetUp();
    void TearDown();
};

void ImageEnhanceParamTest::SetUpTestCase() {}
void ImageEnhanceParamTest::TearDownTestCase() {}
void ImageEnhanceParamTest::SetUp() {}
void ImageEnhanceParamTest::TearDown() {}

/**
 * @tc.name: SetAndGetImageEnhanceScene
 * @tc.desc: Verify the SetImageEnhanceScene and GetImageEnhanceScene function
 * @tc.type: FUNC
 * @tc.require:
 */
HWTEST_F(ImageEnhanceParamTest, SetAndGetImageEnhanceScene, Function | SmallTest | Level1)
{
    std::string appName1 = "com.test1.app";
    std::string appName2 = "com.test2.app";
    ImageEnhanceParam::SetImageEnhanceScene(appName1);
    ImageEnhanceParam::SetImageEnhanceScene(appName2);
    const std::unordered_set<std::string>& actualScene = ImageEnhanceParam::GetImageEnhanceScene();
    EXPECT_NE(actualScene.find(appName1), actualScene.end());
    EXPECT_NE(actualScene.find(appName2), actualScene.end());
}
} // namespace Rosen
} // namespace OHOS